import React from 'react';
// react的组件库
import 'antd-mobile/dist/antd-mobile.css'
// 引入home组件
import Home from './view/home/Home'
import List from './view/list/List'
import {BrowserRouter as Router,Route,Redirect,Switch} from 'react-router-dom'
import 'assets/style/common.css'
function App() {
  return (
    <Router>
      <Switch>
      <Route path="/home" component={Home}></Route>
      <Route path="/list" component={List}></Route>
     <Redirect exact from="/" to="/home"></Redirect>
     </Switch>
    </Router>
  );
}

export default App;
